package com.xpec.c4.db.dao;

import org.hibernate.Session;

import com.xpec.c4.db.basic.BasicGameDAO;
import com.xpec.c4.db.hibernate.manager.HibernateLogManager;
import com.xpec.c4.db.model.PlayerKeepSeatLogModel;

public class PlayerKeepSeatLogDAO extends BasicGameDAO { 
	/**
	 * 新增 或 更新 保留資料
	 * @param model
	 * @return
	 */
	public static boolean addPlayerKeepLog(PlayerKeepSeatLogModel model)
	{
		Session session  = HibernateLogManager.txBegin();
		session.saveOrUpdate(model);
		return HibernateLogManager.txCommitFailRollbackClearSession();
	}
}
